<template>
    <div class="bf-product">
        <h1>{{ $t('page.index.product.title') }}</h1>
        <h3>{{ $t('page.index.product.desc') }}</h3>
        <div class="bf-blocktype">
            <el-row>
                <el-col :span="8" v-for="item,index in $t('page.index.product.pList')" :key="index" v-if="index < 4">
                    <img :src="item.imgUrl" alt="">
                    <h2>{{ item.title }}</h2>
                    <p>{{ item.desc }}</p>
                    <button><router-link :to="{name: 'product', params: { userId: index }}" >{{ item.btxt }}>></router-link></button>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="8" v-for="item,index in $t('page.index.product.pList')" :key="index" v-if="index > 3">
                    <img :src="item.imgUrl" alt="">
                    <h2>{{ item.title }}</h2>
                    <p>{{ item.desc }}</p>
                    <button><router-link :to="{name: 'product', params: { userId: index }}" >{{ item.btxt }}>></router-link></button>
                </el-col>
            </el-row>
        </div> 
    </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    toProduct() {
      this.$router.push({ name: "product", params: { userId: 1 } });
    }
  }
};
</script> 
<style>
.bf-product h1 {
  width: 150px;
  margin: 63px auto 18px;
  position: relative;
}
.bf-product h1:before {
  content: "";
  display: block;
  position: absolute;
  top: 20px;
  left: -60px;
  width: 40px;
  height: 1px;
  color: #4b96ff;
  background: rgba(75, 150, 255, 1);
}
.bf-product h1:after {
  content: "";
  display: block;
  position: absolute;
  top: 20px;
  right: -60px;
  width: 40px;
  height: 1px;
  color: #4b96ff;
  background: rgba(75, 150, 255, 1);
}
.bf-blocktype {
  width: 1200px;
  margin: 35px auto 0;
}
.bf-blocktype .el-row {
  width: 100%;
  height: auto;
}
.bf-blocktype .el-row .el-col {
  width: 285px;
  height: 400px;
  margin-top: 20px;
  float: left;
  border: 1px solid #dee3e7;
  padding: 60px 25px 20px;
  margin-right: 19px;
  background: rgba(255, 255, 255, 1);
  position: relative;
}
.bf-blocktype .el-row .el-col:last-child {
  margin-right: 0;
}
.bf-blocktype .el-row .el-col:hover {
  box-shadow: 0px 30px 30px 0px rgba(75, 150, 255, 0.4);
}
.bf-blocktype .el-row .el-col img {
  width: 100px;
  height: 100px;
}
.el-row .el-col h2 {
  font-size: 22px;
  color: #000;
  margin-top: 10px;
}
.bf-blocktype .el-row .el-col p {
  font-size: 14px;
  color: #333;
  text-align: left;
  margin: 20px 0;
  line-height: 22px;
}
.bf-blocktype .el-row .el-col button {
  width: 150px;
  height: 40px;
  line-height: 40px;
  border: 1px solid #dee3e7;
  background: #fff;
  color: #333;
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 50%;
  margin-left: -75px;
  cursor: pointer;
}
</style>

